package tool;


import graphics.BootColor;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Graphics;

import boot.Boot;



public class ScreenUtils {

	public static final int SCREEN_WIDTH = 240;
	public static final int SCREEN_HEIGHT = 248;
	
	public static void alert(String message) {
		Alert alert = new Alert("Error", message, null, AlertType.CONFIRMATION);
		Display.getDisplay(Boot.getInstance()).setCurrent(alert);
	}

	public static void setBlackBackground(Graphics g) {
		g.setColor(BootColor.BLACK);
		g.fillRect(0, 0, 240, 250);
	}
}
